package com.fjnu.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @desc:
 * @author: Ping
 * @date: 2025/9/22 9:03
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Component
@Scope("prototype") //模型模式
public class Role {
    /**
     * todo: 补充完成Role的各属性，尤其Role关联的多个permission属性
     */
    private Integer id;
    private String roleId;
    private String name;
    private String description;
    private Integer status;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    List<Permission> permissions;
}
